You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > Statistics Class > Statistics Methods > RayleighFit Method > Statistics.RayleighFit Method ([In] TVec, out double, double[], double)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
Statistics.RayleighFit Method ([In] TVec, out double, double[], double)

Calculate parameters for Rayleigh distributed values.

Syntax
C#
Visual Basic
public static void RayleighFit([In] TVec X, out double b, ref double[] PCIB, double Alpha);
Parameters 
Description 
[In] TVec X 
Stores data which is assumed to be Rayleigh distributed. 
out double b 
Returns Rayleigh distribution parameter estimator. 
ref double[] PCIB 
b (1-Alpha)*100 percent confidence interval. 
double Alpha 
Confidence interval percentage. 

RandomRayleigh, RayleighStat

The following example generates 100 random Rayleigh distributed values and then uses RayleighFit routine to extract used b parameter

using Dew.Math; using Dew.Stats; using Dew.Stats.Units; namespace Dew.Examples; { private void Example() { Vector vec1 = new Vector(0); // first, generate 1000 randomly Rayleigh distributed // numbers with b=1.3 vec1.Size(1000,false); StatRandom.RandomRayleigh(1.3,vec1,-1); // Now extract the r and it's 95% confidence intervals. double resb; double[] CIb = new double[2]; Statistics.RayleighFit(vec1,out resb,out CIb,0.05); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!